FROM registry.cn-beijing.aliyuncs.com/jws-images/node:20-alpine
WORKDIR /app
COPY . /app
RUN npm config set registry https://registry.npmmirror.com
RUN npm install -g pnpm nodemon
RUN pnpm config set registry https://registry.npmmirror.com
RUN pnpm install
EXPOSE 3000
CMD ["pnpm", "run:server"]